﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using webnew.Common;
namespace webnew
{
    public partial class ErroPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int errType = MyConvert.toInt32(Request.QueryString["erro"]);
            if (!IsPostBack)
            {
                string msg = "<span style='color:red;font-size:12px;font-weight:bold;'>";
                switch (errType)
                {
                    case 0:
                        msg += "出错了!请重试!";
                        //msg +="Sorry! 您没有权限查看该页面";
                        break;
                    case 1:
                        msg +="Sorry! 您要访问的页面不存在";
                        break;
                    case 2:
                        msg +="出错了!请重试!";
                        break;
                    default:
                        msg += "出错了!请重试!";
                        break;
                }
                msg+="</span>";
                ltMsg.Text = msg;
            }
        }
    }
}
